package com.hll.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * (User)实体类
 *
 * @author makejava
 * @since 2021-07-04 15:18:01
 */
@Data
@TableName("user")
@ApiModel(description = "用户信息")
public class User implements Serializable {
  private static final long serialVersionUID = -45931617957921606L;

  // 不设置这个居然插入失败
  @ApiModelProperty(value = "用户")
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;

  @ApiModelProperty(value = "用户名")
  private String username;

  @ApiModelProperty(value = "用户密码")
  private String password;
  /** 管理员权限 */
  @ApiModelProperty(value = "管理员权限")
  private Boolean guanli;
  /** 零售查询权限 */
  @ApiModelProperty(value = "零售查询权限")
  private Boolean lingshou;
  /** 采购设置权限 */
  @ApiModelProperty(value = "采购设置权限")
  private Boolean caigou;
  /** 销售设置权限 */
  @ApiModelProperty(value = "销售设置权限")
  private Boolean xiaoshou;
  /** 仓库查询权限 */
  @ApiModelProperty(value = "仓库查询权限")
  private Boolean cangku;
}
